home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.7z
/
ftp.whtech.com
/
emulators
/
mess
/
MESS 0.133
/
Macintosh
/
MessMenu 0.7.0 OSX uni.dmg
/
MessMenu.app
/
Contents
/
MacOS
/
uimodeidx.sh
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Linux/UNIX/POSIX Shell Script
|
2008-09-30
|
254 b
|
17 lines
#!/bin/sh
if [ -z "$MESSHOME" ]
then
. ./messenv.sh
fi
uimodekey=`grep "^uimodekey " "$MESSHOME"/mess.ini | awk '{print $2}'`
idx=`grep -n "$uimodekey" uikeylst.tcl | cut -d: -f1`
if [ -z "$idx" ]
then
echo 0
exit 0
fi
idx=`expr $idx - 1`
echo $idx